<?php

namespace INT\AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Groupe
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Groupe
{
    
  /**
   * @ORM\ManyToMany(targetEntity="INT\AdminBundle\Entity\Seance", mappedBy="groupes")
   */
  private $seances;
    /**
   * @ORM\ManyToOne(targetEntity="INT\AdminBundle\Entity\Filiere", inversedBy="groupes")
   */
  private $filiere;
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="numero", type="string", length=255)
     */
    private $numero;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set numero
     *
     * @param string $numero
     * @return Groupe
     */
    public function setNumero($numero)
    {
        $this->numero = $numero;
    
        return $this;
    }

    /**
     * Get numero
     *
     * @return string 
     */
    public function getNumero()
    {
        return $this->numero;
    }
    /**
     * Constructor
     */
    public function __construct()
    {
        $this->seances = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    /**
     * Add seances
     *
     * @param \INT\AdminBundle\Entity\Seance $seances
     * @return Groupe
     */
    public function addSeance(\INT\AdminBundle\Entity\Seance $seances)
    {
        $this->seances[] = $seances;
    
        return $this;
    }

    /**
     * Remove seances
     *
     * @param \INT\AdminBundle\Entity\Seance $seances
     */
    public function removeSeance(\INT\AdminBundle\Entity\Seance $seances)
    {
        $this->seances->removeElement($seances);
    }

    /**
     * Get seances
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getSeances()
    {
        return $this->seances;
    }

    /**
     * Set filiere
     *
     * @param \INT\AdminBundle\Entity\Filiere $filiere
     * @return Groupe
     */
    public function setFiliere(\INT\AdminBundle\Entity\Filiere $filiere = null)
    {
        $this->filiere = $filiere;
    
        return $this;
    }

    /**
     * Get filiere
     *
     * @return \INT\AdminBundle\Entity\Filiere 
     */
    public function getFiliere()
    {
        return $this->filiere;
    }
}